#!/usr/bin/python
# Call mxtr in out-of-source build

import os
import subprocess
import sys

os.putenv("MYSQLX_SHELL_BINDIR", "@CMAKE_BINARY_DIR@")
os.chdir('@CMAKE_SOURCE_DIR@/shell-tests')
sys.exit(subprocess.call(["python", "@CMAKE_SOURCE_DIR@/shell-tests/mysqlx-test-run.py"] + sys.argv[1:]))
